package nl.boelen.game.level;

import java.util.Random;
import nl.boelen.game.options.Option;

public class Chunk {
    public int x;
    public int y;
    private int[][] tiles = null;

    public Chunk(int x, int y) {
        this.x = x;
        this.y = y;
    }

    private void generateTiles() {
        tiles = new int[Option.CHUNKSIZE][Option.CHUNKSIZE];
        Random r = new Random();
        for (int w = 0; w < tiles.length; w++) {
            for (int h = 0; h < tiles[0].length; h++) {
                tiles[w][h] = r.nextInt(5);
            }
        }
    }

    public int[][] getTiles() {
        return tiles;
    }
}
